package day06;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.util.*;

public class MethodDemo {
    public static void main(String[] args) throws UnsupportedEncodingException {
        int a=1;

        String s="Java 学习";
         byte[] bs=s.getBytes("UTF-8");
         String s1=new String(bs,"UTF-8");
        System.out.println(s1);
       Dictionary<Integer,String> dc=new Hashtable<>();
        HashMap<Integer,String> hs=new HashMap<>();
     //   hs.pu
    }
    public static void aMethod(){

        System.out.println(111);
        bMethod();
    }
    static int count;
    public static void bMethod(){

        count++;
        aMethod();
        System.out.println(222);
        if(count==3)
            System.exit(0);
    }
}
